home *** CD-ROM | disk | FTP | other *** search
- Submitted-by: karish@mindcraft.com (Chuck Karish)
-
- conklin@kaleida.com (J.T. Conklin) asked:
- >Since expr will coerce a string into an interger in other contexts, I
- >am wondering if a string like 0000 should be interpreted as zero? All
- >of the implementations (that worked at all) I've tried do not.
- >I've patched the broken versions (386BSD & GNU) to the traditional
- >behavior, but I'm curious to know if the traditional behavior is
- >actually incorrect.
-
- In P1003.2 Draft 11, the entry for expr (4.22.7, page 401) defines "integer"
- as "An argument consisting only of an (optional) unary minus followed by
- digits."
-
- By this definition, "0000" is an integer.
-
- --
- Chuck Karish karish@mindcraft.com
- Mindcraft, Inc. (415) 323-9000 x117
-
- Volume-Number: Volume 31, Number 38
-
-